<?php
// +----------------------------------------------------------------------
// | Yzncms [ 御宅男工作室 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2018 http://yzncms.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 御宅男 <530765310@qq.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 全局路由
// +----------------------------------------------------------------------
//use think\facade\Route;

//---------------------基本信息不用登录-------------------------------------
Route::rule("upload_img", 'app/Index/upload_img'); //上传图片
Route::rule('wxlogin', 'app/Index/wxLogin'); //获取openid
Route::rule("getPhone", 'app/Index/GetPhone');  //获取手机号
Route::post("deuser", 'app/Index/deuser'); //保存用户信息

//member_privacy_agreement
//用户隐私协议
//user_agreement
//用户服务协议
//business_into_agreement
//商家入驻协议
Route::rule("getConfigAdmin", 'app/Index/getConfigAdmin'); //获取平台各项配置   set_name传参
Route::rule("getBanner", 'app/Index/getBanner');  //获取banner图列表


Route::rule("getAddressByLocation2", 'app/Index/getAddressByLocation');//通过坐标获取位置信息
Route::rule("getCityLocation", 'app/Index/getCityLocation');//获取城市坐标





//---------------------用户信息---------------------------------------------
Route::rule("getUserStatus", 'app/WxUser/getUserStatus');//修改用户信息并返回
Route::rule("getUserinfoUpdate", 'app/WxUser/getUserinfoUpdate');//修改用户信息并返回
Route::rule("getOperateCateList", 'app/WxUser/getOperateCateList');//获取经营分类
Route::rule("GetWxUserInfo", 'app/WxUser/GetWxUserInfo');//获取用户信息
Route::rule("getOperateTypeList", 'app/WxUser/getOperateTypeList');//获取经营方式
Route::rule("getBrandList", 'app/WxUser/getBrandList');//获取经营品牌
Route::rule("getGoodsLabs", 'app/WxUser/getGoodsLabs');//获取食品袋标签

//getGoodsLabs
Route::rule("getBusinessStatus", 'app/WxUser/getBusinessStatus');//商家审核状态
Route::rule("addBusiness", 'app/WxUser/addBusiness');//商家审核状态
Route::rule("employ", 'app/WxUser/employ');//成为员工


//优惠券
Route::rule("isXinPeople", 'app/WxUser/isXinPeople');//判断是否新人可领取优惠券
Route::rule("getXinCoupons", 'app/WxUser/getXinCoupons');//获取新人优惠券

//收藏商家 取消商家
Route::rule("collectBusiness", 'app/WxUser/collectBusiness');//收藏商家
Route::rule("cancelBusiness", 'app/WxUser/cancelBusiness');//取消收藏商家

//收藏商品 取消商品
Route::rule("collectGoods", 'app/WxUser/collectGoods');//收藏商品
Route::rule("cancelGoods", 'app/WxUser/cancelGoods');//取消收藏商品
Route::rule("getBusinessList", 'app/WxUser/getBusinessList');//获取商家列表
Route::rule("getBusinessDetail", 'app/WxUser/getBusinessDetail');//获取商家详情
Route::rule("getGoodsList", 'app/WxUser/getGoodsList');//获取商家商品列表
Route::rule("getGoodsDetail", 'app/WxUser/getGoodsDetail');//获取商品详情
Route::rule("getRecommendList", 'app/Index/getRecommendList');//获取推荐

Route::rule("getAddressListByKeywords", 'app/WxUser/getAddressListByKeywords');//通过关键词获取地址列表
Route::rule("getOrderCoupons", 'app/WxUser/getMemberCoupons');//获取订单可用优惠券
Route::rule("createOrder", 'app/WxUser/createOrder');//创建订单
Route::rule("payGoodsOrder", 'app/WxUser/payGoodsOrder');//发起支付
Route::rule("payOrderBack", 'app/WxUser/payOrderBack');//订单回调
Route::rule("orderDetail", 'app/WxUser/orderDetail');//获取订单详情
Route::rule("getCollectBusinessList", 'app/WxUser/getCollectBusinessList');//获取收藏商家列表
Route::rule("getCollectGoodsList", 'app/WxUser/getCollectGoodsList');//获取收藏商品列表
Route::rule("cancelOrder", 'app/WxUser/cancelOrder');//取消订单
Route::rule("delOrder", 'app/WxUser/delOrder');//删除订单
Route::rule("getRefundList", 'app/WxUser/getRefundList');//获取退款原因

Route::rule("check2", 'app/Index/check2');//文字审核
Route::rule("check_img2", 'app/Index/check_img2');//图片审核

Route::rule("getBaiduToken", 'app/Index/getBaiduToken');//获取审核百度token
Route::rule("textVerity", 'app/Index/textVerity');// 百度文字审核
Route::rule("imgVerity", 'app/Index/imgVerity');// 百度图片审核




Route::rule("sign", 'app/WxUser/sign');//签到
Route::rule("signList", 'app/WxUser/signList');//每月签到列表
Route::rule("getMemberLevel", 'app/WxUser/getMemberLevel');//获取会员等级徽章

//发送消息
Route::rule("msgCount", 'app/WxUser/msgCount');//未读消息数量

Route::rule("sendMsg", 'app/WxUser/sendMsg');//发送消息
Route::rule("getMsgReply", 'app/WxUser/getMsgReply');//消息中心顶部回复消息
Route::rule("getMsgList", 'app/WxUser/getMsgList');//获取消息列表
Route::rule("getReviewReply", 'app/WxUser/getReviewReply');//消息中心 评论回复
Route::rule("getMsgDetail", 'app/WxUser/getMsgDetail');//获取消息详情
Route::rule("delMessage", 'app/WxUser/delMessage');//删除消息
Route::rule("delDuMessage", 'app/WxUser/delDuMessage');//删除已读消息
Route::rule("fractionHistory", 'app/WxUser/fractionHistory');//积分历史
//getFractionBusiness
Route::rule("getFractionBusiness", 'app/WxUser/getFractionBusiness');//积分商城优惠券列表
Route::rule("fractionConvert", 'app/WxUser/fractionConvert');//兑换优惠券
Route::rule("getChangeRecord", 'app/WxUser/getChangeRecord');//兑换记录
Route::rule("getQuestionCate", 'app/WxUser/getQuestionCate');//获取问题分类
Route::rule("getQuestion", 'app/WxUser/getQuestion');//获取问题列表
Route::rule("createFeedback", 'app/WxUser/createFeedback');//反馈问题
Route::rule("getComment", 'app/WxUser/getComment');//获取我的评价
Route::rule("getMemberCouponsList", 'app/WxUser/getMemberCouponsList');//获取我的优惠券
Route::rule("userRole", 'app/WxUser/userRole');//获取我的优惠券

//sign

//批量取消
Route::rule("cancelCollectGoodsByIds", 'app/WxUser/cancelCollectGoodsByIds');//商品
Route::rule("cancelCollectBusinessByIds", 'app/WxUser/cancelCollectBusinessByIds');//商家
Route::rule("createComment", 'app/WxUser/createComment');//创建评价商品
Route::rule("replyComment", 'app/WxUser/replyComment');//回复评论
Route::rule("getCommentLabList", 'app/Index/getCommentLabList');//获取评价标签
Route::rule("getBusinessCommentHead", 'app/WxUser/getBusinessCommentHead');//获取商家评论顶部
Route::rule("getBusinessCommentList", 'app/WxUser/getBusinessCommentList');//获取商家评论列表

Route::rule("getGoodsCommentHead", 'app/WxUser/getGoodsCommentHead');//获取商家评论顶部
Route::rule("getGoodsCommentList", 'app/WxUser/getGoodsCommentList');//获取商家评论列表
Route::rule("getMemberOrderList", 'app/WxUser/getOrderList');//获取订单列表
Route::rule("getReply", 'app/WxUser/getReply');//获取评论回复详情
Route::rule("inviteMemberList", 'app/WxUser/inviteMemberList');//获取邀请会员列表
Route::rule("refund", 'app/WxUser/refund');//退款
Route::rule("getMsgSwitchList", 'app/WxUser/getMsgSwitchList');//消息开关列表
Route::rule("setMsgSwitch", 'app/WxUser/setMsgSwitch');//消息开关
Route::rule("preSale", 'app/WxUser/preSale');//设置预售

//大屏
Route::rule("getUserNum", 'app/Index/getUserNum');
Route::rule("getCateGoods", 'app/Index/getCateGoods');
Route::rule("getCenterNum", 'app/Index/getCenterNum');
Route::rule("businessSellList", 'app/Index/businessSellList');
Route::rule("businessCateList", 'app/Index/businessCateList');
Route::rule("memberOrderList", 'app/Index/memberOrderList');
Route::rule("memberAddTrend", 'app/Index/memberAddTrend');//近7天新增会员走势
Route::rule("businessSettled", 'app/Index/businessSettled');//商家入驻
Route::rule("dealRadio", 'app/Index/dealRadio');//成交客户数据统计
Route::rule("dealRadio2", 'app/Index/dealRadio2');//成交客户数据统计2
Route::rule("totalAmount", 'app/Index/totalAmount');//成交总额预览

//初始化
Route::rule("delInit", 'app/Index/delInit');//成交总额预览






//refundgetBusinessInfo


//getCollectBusinessList
//payOrderBack

//---------------------------------商家信息-----------------------------------

Route::rule("getBusinessInfo", 'app/Business/getBusinessInfo');//商家审核状态
Route::rule("getBusinessDataCount", 'app/Business/getBusinessDataCount');//商家数据统计
//
Route::post("createFoodBag", 'app/Business/createFoodBag');//创建食品袋
Route::rule("getBusinessCate", 'app/Business/getBusinessCate');//获取商家经营分类
Route::rule("getBusinessGoodsList", 'app/Business/getGoodsList');//获取列表商家食品袋列表
Route::rule("getGoodsDetail2", 'app/Business/getGoodsDetail');//获取食品袋详情
Route::post("setGoodsTomorrow", 'app/Business/setGoodsTomorrow');//设置明天预售
Route::rule("delGoods", 'app/Business/delGoods');//删除取消审核食品袋
Route::rule("setGoodsStatus", 'app/Business/setGoodsStatus');//上下架食品袋
Route::post("editGoods", 'app/Business/editGoods');//编辑食品袋
Route::post("goGoods", 'app/Business/goGoods');//上架设置食品袋数量

Route::rule("accountData", 'app/Business/accountData');//账户中心数据
Route::post("BusinessTixian", 'app/Business/BusinessTixian');//商家提现
Route::rule("tixianRecordList", 'app/Business/tixianRecordList');//提现记录
Route::rule("tradeRecordList", 'app/Business/tradeRecordList');//营业记录
Route::rule("tixianDetail", 'app/Business/tixianDetail');//提现详细

Route::rule("BusinessOnline", 'app/Business/BusinessOnline');//商家上下线
Route::rule("editBusinessInfo", 'app/Business/editBusinessInfo');//编辑商家
Route::rule("getEmployList", 'app/Business/getEmployList');//获取员工列表
Route::rule("setManage", 'app/Business/setManage');//设置员工管理员
Route::rule("delEmploy", 'app/Business/delEmploy');//删除员工
Route::rule("addEmploy", 'app/WxUser/addEmploy');//增加员工
Route::rule("employLevel", 'app/WxUser/employLevel');//获取员工角色等级
//获取员工角色等级

Route::rule("verifyOrder", 'app/Business/verifyOrder');//扫码核销
Route::rule("verifyOrderDigits", 'app/Business/verifyOrderDigits');//核销码核销
Route::rule("getBusinessOrder", 'app/Business/getBusinessOrder');//获取商家订单
Route::rule("getBCommentList", 'app/Business/CommentList');//获取用户评价
Route::rule("getBCommentDetail", 'app/Business/commentDetail');//获取用户评价
Route::rule("replyBComment", 'app/Business/replyComment');//创建评论

Route::rule("getEmployInfo", 'app/Business/getEmployInfo');//获取员工信息
Route::rule("saleCountList", 'app/Business/saleCountList');//成交客户数据统计2getBusinessGoodsList

Route::rule("businessOrderDetail", 'app/Business/orderDetail');//获取订单详情

//---------------------------------员工接口-----------------------------------
//Route::rule("getEmployInfo", 'app/Employ/getEmployInfo');//获取员工信息
//Route::rule("getBusinessInfo_employ", 'app/Employ/getBusinessInfo');//获取员工所属商家信息
//
//Route::rule("verifyOrder_employ", 'app/Employ/verifyOrder');//扫码核销
//Route::rule("verifyOrderDigits_employ", 'app/Employ/verifyOrderDigits');//核销码核销
//
//
Route::rule("getAddressByIp", 'app/WxUser/getAddressByIp');
Route::rule("getWeatherByCity", 'app/Index/getWeatherByCity');

//--------------------------------定时任务----------------------------------
Route::rule("orderTime", 'app/Index/orderTime');//订单定时
Route::rule("orderTime2", 'app/Index/orderTime2');//订单定时超时失效

Route::rule("goodsTime", 'app/Index/goodsTime');//食品袋定时

Route::rule("test", 'app/Index/test');//测试
Route::rule("signMsgTime", 'app/Index/signMsgTime');//定时发送签到提醒
Route::rule("couponsTime", 'app/Index/couponsTime');//定时发送优惠券提醒
Route::rule("orderCommentime", 'app/Index/orderCommentime');//默认好评
Route::rule("sendPlatformMsg", 'app/Index/sendPlatformMsg');//平台定时消息
//sendPlatformMsg
Route::rule("refund2", 'app/Index/refund2');//平台定时消息

Route::rule("businessProvince", 'app/Index/businessProvince');//省内范围
Route::rule("businessListMap", 'app/Index/businessListMap');//省内范围

Route::rule("businessAreaList", 'app/Index/businessAreaList');//省内范围
Route::rule("businessCity", 'app/Index/businessCity');//每个市的数量列表



Route::rule("sendOrderXcxMessage", 'app/WxUser/sendOrderXcxMessage');//发送订单通知接口
Route::rule("repaySend", 'app/Index/repaySend');//定时任务预售消息订阅任务
Route::rule("getBusinessAccount", 'app/Index/getAccount');//定时任务订单到账
//定时任务

//图片编辑
Route::rule("edit_img", 'app/Index/edit_img');
//增加边框
Route::rule("add_border", 'app/Index/add_border');
Route::rule("c2", 'app/Index/c2');

Route::rule("getPhone2", 'app/Index/getPhone2');
//设置水印
Route::rule("setSY", 'app/Index/setSY');
Route::rule("setSYText", 'app/Index/setSYText');

//大屏
Route::rule("cIndex", 'app/Index/cIndex');
Route::rule("cIndex2", 'app/Index/cIndex2');



//获取资源分类
Route::rule("getPropertyCate", 'app/Cmap/getPropertyCate');

Route::rule("cityList", 'app/Cmap/city_list');

Route::rule("areaList2", 'app/Cmap/areaList');

Route::rule("communityList", 'app/Cmap/communityList');

Route::rule("getMapList", 'app/Cmap/getMapList');

Route::rule("getCityList", 'app/Cmap/getCityList');

Route::rule("getAddressByIp2", 'app/Cmap/getAddressByIp');

Route::rule("getAddress22", 'app/Index/getAddress');
Route::rule("gezbByName", 'app/Cmap/getzb');
























